package self;

import self.facade.FacadeService;
import self.service.Listenable;
import self.service.Readable;
import self.service.Speakable;
import self.serviceimpl.Listen;
import self.serviceimpl.Read;
import self.serviceimpl.Speak;



// http://hi.baidu.com/marktian/item/f07dae981cfad68d58146199

public class TestFacade {
	
	public static void main(String[] arg){
		
		//要实现一个人的听说读的功能:
		Listenable  listening = new Listen();
		Readable    reading   = new Read();
		Speakable   speaking  = new Speak();
		//人要：听，说，读：我在测试facade
		System.out.println("===========Section#1=================");
		String content = "我在测试facade";
		listening.listening(content);
		reading.readSomething(content);
		speaking.saySomething(content);
		
		System.out.println("============Section#2================");
		FacadeService  facadeService = new FacadeService();
		facadeService.ability(content);
		
		
	}

}
